package eva.savant.business.global.view;

import eva.savant.core.view.Maestro
import eva.savant.businessobject.gl.Persona
import eva.savant.businessobject.gl.Division

import javax.faces.bean.ManagedBean
import javax.faces.bean.SessionScoped
import javax.annotation.PostConstruct

@SessionScoped
@ManagedBean(name = 'IMPersona')
public class IMPersona extends Maestro {

  def lsDivision

  @PostConstruct
  public void cleanEntity() {

    entity= new Persona(); init()

    entity.division= new Division()

    lsDivision= find(Division,'')
  }

}
